package com.rongmai.db.mapper;

import com.rongmai.db.dto.CompanyDTO;
import com.rongmai.db.model.Company;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 张
* @description 针对表【company(公司信息)】的数据库操作Mapper
* @createDate 2023-11-11 12:20:08
* @Entity com.rongmai.db.model.Company
*/
public interface CompanyMapper {

    void insert(Company company);

    Company getByName(@Param("name") String name,@Param("role") String role);

    void update(Company byNameComp);

    List<Company> page(CompanyDTO companyDTO);

    int count(CompanyDTO companyDTO);

    Company getById(Integer companyId);
}
